const notify = {
    state: {
        notifyCount: {
            toConfirm: 0,
            toBuy0: 0,
            toBuy1: 0,
            toDiao: 0,
            toShip: 0
        },
        notifyPlanCount:{
            toPartCount:0,
            toExeCount:0,
            toPartCountStart:0,
            toExeCountStart:0,
            sysUnread:0,
        }
    },
    mutations: {
        SET_COUNT: (state, params) => {
            state.notifyCount = params;
        },
         SET_PLAN_COUNT: (state, params) => {
            
            state.notifyPlanCount = params;
        }
    },
    actions: {
        setCount({ commit }, obj) {
            commit('SET_COUNT', obj)
        },
        setPlanCount({commit},obj){
         
            commit('SET_PLAN_COUNT', obj)
        }
    }
}
export default notify